package com.comcast.core.eeg.types;

import java.io.ObjectStreamException;

public enum NotificationRole {
    
    PUBLISHER, SUBSCRIBER, ;
    
    private static final long serialVersionUID = 1L; 

    public static NotificationRole fromValue(String value) {
        return valueOf(value);
    }

    public String getValue() {
        return this.toString();
    }    

    private EnumHolder<NotificationRole> serializationToken;

    private NotificationRole() {
        this.serializationToken = new EnumHolder<NotificationRole>(this);
    }

    private Object writeReplace() throws ObjectStreamException {
        return serializationToken;
    }    
    
}